import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import '@/static/css/iconfont/iconfont.css';
import '@/static/css/index.scss';
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import themeBox from '@/pages/components/theme/index.vue' 
import '@/common/jone-store.js'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
export function createApp() {
  const app = createSSRApp(App)
  app.component('themeBox', themeBox)
  app.use(pinia)
  return {
    app
  }
}
// #endif